//下拉框选项
bbsApp.service("selectArrays", ["$rootScope", "$http", function($rootScope, $http){
	"use strict";
	
	//审核状态
	$rootScope.auditStatusArray = function(callback){
		$http({
			method: "POST",
			url: "selectArray/getAuditStatusArray.do"
		}).success(function(result) {
			callback(result);
		});
	};
	
	//会员状态（0停用，1正常）
	$rootScope.memberStatusArray = function(callback){
		$http({
			method: "POST",
			url: "selectArray/getMemberStatusArray.do"
		}).success(function(result) {
			callback(result);
		});
	};
	
	//会员状态转码用（0停用，1正常，2短期停用）
	$rootScope.memberEnableArray = function(callback){
		$http({
			method: "POST",
			url: "selectArray/getMemberEnableArray.do"
		}).success(function(result) {
			callback(result);
		});
	};
	
	//会员类型（0个人会员，1企业会员）
	$rootScope.memberTypeArray = function(callback){
		$http({
			method: "POST",
			url: "selectArray/getMemberTypeArray.do"
		}).success(function(result) {
			callback(result);
		});
	};
	
	//会员等级（0 V1，1 V2,2 V3）
	$rootScope.memberLvArray = function(callback){
		$http({
			method: "POST",
			url: "selectArray/getMemberLvArray.do"
		}).success(function(result) {
			callback(result);
		});
	};
	
	//渠道来源（0渠道1，1渠道2）
	$rootScope.memberSourceArray = function(callback){
		$http({
			method: "POST",
			url: "selectArray/getMemberSourceArray.do"
		}).success(function(result) {
			callback(result);
		});
	};
	
	//黑名单（0恶意登录，1恶意购买，2恶意评论）
	$rootScope.blackListArray = function(callback){
		$http({
			method: "POST",
			url: "selectArray/getBlackListArray.do"
		}).success(function(result) {
			callback(result);
		});
	};
	
}]);